package com.jingwei.controllers;

import net.paoding.rose.web.ControllerInterceptorAdapter;
import net.paoding.rose.web.Invocation;

public class AutoLogInterceptor extends ControllerInterceptorAdapter {

	public AutoLogInterceptor() {
		setPriority(100);
	}

	@Override
	protected Object before(Invocation inv) throws Exception {
		System.out.println("================"
				+ inv.getRequestPath().getActionPath());
		System.out.println("123");
		System.out.println("333");
		return true;
	}

	@Override
	public void afterCompletion(Invocation inv, Throwable ex) throws Exception {
		System.out.println("+++++++++++++++++++++++++++++++++");
	}

}
